# -*- coding: utf-8 -*-
"""
活动管理 - URL配置
"""

from django.urls import path
from . import views

app_name = 'activities'

urlpatterns = [
    # 页面视图
    path('', views.activity_list, name='list'),  # 活动列表页面
    path('<int:activity_id>/', views.activity_detail, name='detail'),
    path('create/', views.activity_create, name='create'),
    path('<int:activity_id>/edit/', views.activity_edit, name='edit'),
    path('my-activities/', views.my_activities, name='my_activities'),
    path('map/', views.map_view, name='map_view'),
    path('style-showcase/', views.style_showcase, name='style_showcase'),  # 设计系统展示
    path('geocode/', views.geocode, name='geocode'),
    path('reverse_geocode/', views.reverse_geocode, name='reverse_geocode'),
    path('save_location/', views.save_location, name='save_location'),
    path('api/nearby/', views.get_nearby_activities, name='api_nearby_activities'),
    path('api/search_city/', views.search_city_activities, name='api_search_city'),
    
    # API接口
    path('api/list/', views.api_activity_list, name='api_list'),
    path('api/<int:activity_id>/', views.api_activity_detail, name='api_detail'),
    path('api/create/', views.api_activity_create, name='api_create'),
    path('api/upload-image/', views.api_upload_image, name='api_upload_image'),
    path('api/<int:activity_id>/register/', views.api_activity_register, name='api_register'),
    path('api/<int:activity_id>/participants/', views.api_activity_participants, name='api_participants'),
    path('api/<int:activity_id>/registration-status/', views.api_registration_status, name='api_registration_status'),
    path('api/statistics/', views.api_statistics, name='api_statistics'),
]
